package file;

import java.io.File;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/14 11:03
 */
public class MkdirsDemo {
    public static void main(String[] args) {
        File dirs=new File("./a/b/c/d/e/f");
        if (dirs.exists()){
            System.out.println("目录已存在");
        }else {
            dirs.mkdirs();
            System.out.println("目录已创建");
        }
    }
}
